package com.yunji.product.service.impl;

import com.yunji.product.bo.AttrValuesListQueryBO;
import com.yunji.product.dao.IAttrValuesDao;
import com.yunji.product.domain.AttrValuesDO;
import com.yunji.product.service.IAttrValuesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.product.service.impl
 * @Title: AttrValuesServiceImpl
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-14 11:27:11      V1.0        HuaAo       新建类
 */
@Service
public class AttrValuesServiceImpl implements IAttrValuesService {

    @Resource
    IAttrValuesDao attrValuesDao;

    @Override
    public boolean create(AttrValuesDO attrValues) {
        return attrValuesDao.save(attrValues);
    }

    @Override
    public List<AttrValuesDO> search(AttrValuesListQueryBO bo) {
        return attrValuesDao.search(bo);
    }


    @Override
    public boolean deleteByAttrIds(Long... attrIds) {
        return attrValuesDao.deleteByAttrIds(attrIds);
    }

    @Override
    public boolean update(AttrValuesDO closeParam) {
        return attrValuesDao.updateById(closeParam);
    }
}